package cn.bonoon.core.plugins;

import java.util.List;

import cn.bonoon.entities.interacting.MessageAcceptEntity;
import cn.bonoon.entities.interacting.MessageEntity;
import cn.bonoon.kernel.support.IOperator;
import cn.bonoon.kernel.support.services.SearchService;

public interface MessageAcceptService extends SearchService<MessageAcceptEntity> {

	MessageEntity read(Long id);

	// Page_delete<MessageAcceptEntity> myMessages(PageCondition condition, Long id);

	int unreadCount(Long id);

	// 用户接收到的所有新消息（未读消息）
	List<MessageAcceptEntity> getNewMessage(IOperator opt);

	List<MessageAcceptEntity> getSysMessage(IOperator opt, Long page);

	List<MessageAcceptEntity> getPerMessage(IOperator opt, Long page);

}
